// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_REP_CHECK_REPORT
// * CreateDate    : 2014-06-05 18:30:32
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:32
// * LastChanger   : 2014-06-05 18:30:32
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class RepCheckReportEntity : EntityBase
    {
        public RepCheckReportTable TableSchema
        {
            get
            {
                return RepCheckReportTable.Current;
            }
		}
		
		public RepCheckReportEntity()
        {

        }
		
		public RepCheckReportEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckReportId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_REPORT_ID"]));
			this.CheckInfoItemId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_INFO_ITEM_ID"]));
			this.MediaName = Convert.ToString(CommonFunctions.ToObject(dr["MEDIA_NAME"]));
			this.MediaTemperature = Convert.ToString(CommonFunctions.ToObject(dr["MEDIA_TEMPERATURE"]));
			this.Pressure01 = Convert.ToString(CommonFunctions.ToObject(dr["PRESSURE01"]));
			this.SealLiquid = Convert.ToString(CommonFunctions.ToObject(dr["SEAL_LIQUID"]));
			this.Pressure02 = Convert.ToString(CommonFunctions.ToObject(dr["PRESSURE02"]));
			this.Temperature = Convert.ToString(CommonFunctions.ToObject(dr["TEMPERATURE"]));
			this.MainshaftSpeed = Convert.ToString(CommonFunctions.ToObject(dr["MAINSHAFT_SPEED"]));
			this.MainshaftDirection = Convert.ToString(CommonFunctions.ToObject(dr["MAINSHAFT_DIRECTION"]));
			this.FlushingPlan = Convert.ToString(CommonFunctions.ToObject(dr["FLUSHING_PLAN"]));
        }
		
		public RepCheckReportEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.CheckReportId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_REPORT_ID"]));
			this.CheckInfoItemId = Convert.ToString(CommonFunctions.ToObject(dr["CHECK_INFO_ITEM_ID"]));
			this.MediaName = Convert.ToString(CommonFunctions.ToObject(dr["MEDIA_NAME"]));
			this.MediaTemperature = Convert.ToString(CommonFunctions.ToObject(dr["MEDIA_TEMPERATURE"]));
			this.Pressure01 = Convert.ToString(CommonFunctions.ToObject(dr["PRESSURE01"]));
			this.SealLiquid = Convert.ToString(CommonFunctions.ToObject(dr["SEAL_LIQUID"]));
			this.Pressure02 = Convert.ToString(CommonFunctions.ToObject(dr["PRESSURE02"]));
			this.Temperature = Convert.ToString(CommonFunctions.ToObject(dr["TEMPERATURE"]));
			this.MainshaftSpeed = Convert.ToString(CommonFunctions.ToObject(dr["MAINSHAFT_SPEED"]));
			this.MainshaftDirection = Convert.ToString(CommonFunctions.ToObject(dr["MAINSHAFT_DIRECTION"]));
			this.FlushingPlan = Convert.ToString(CommonFunctions.ToObject(dr["FLUSHING_PLAN"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return RepCheckReportTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string CheckReportId
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_CHECK_REPORT_ID)); }
            set { SetData(RepCheckReportTable.C_CHECK_REPORT_ID, value); }
        }
		
        [DataMember]
        public string CheckInfoItemId
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_CHECK_INFO_ITEM_ID)); }
            set { SetData(RepCheckReportTable.C_CHECK_INFO_ITEM_ID, value); }
        }
		
        [DataMember]
        public string MediaName
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_MEDIA_NAME)); }
            set { SetData(RepCheckReportTable.C_MEDIA_NAME, value); }
        }
		
        [DataMember]
        public string MediaTemperature
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_MEDIA_TEMPERATURE)); }
            set { SetData(RepCheckReportTable.C_MEDIA_TEMPERATURE, value); }
        }
		
        [DataMember]
        public string Pressure01
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_PRESSURE01)); }
            set { SetData(RepCheckReportTable.C_PRESSURE01, value); }
        }
		
        [DataMember]
        public string SealLiquid
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_SEAL_LIQUID)); }
            set { SetData(RepCheckReportTable.C_SEAL_LIQUID, value); }
        }
		
        [DataMember]
        public string Pressure02
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_PRESSURE02)); }
            set { SetData(RepCheckReportTable.C_PRESSURE02, value); }
        }
		
        [DataMember]
        public string Temperature
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_TEMPERATURE)); }
            set { SetData(RepCheckReportTable.C_TEMPERATURE, value); }
        }
		
        [DataMember]
        public string MainshaftSpeed
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_MAINSHAFT_SPEED)); }
            set { SetData(RepCheckReportTable.C_MAINSHAFT_SPEED, value); }
        }
		
        [DataMember]
        public string MainshaftDirection
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_MAINSHAFT_DIRECTION)); }
            set { SetData(RepCheckReportTable.C_MAINSHAFT_DIRECTION, value); }
        }
		
        [DataMember]
        public string FlushingPlan
        {
            get { return Convert.ToString(GetData(RepCheckReportTable.C_FLUSHING_PLAN)); }
            set { SetData(RepCheckReportTable.C_FLUSHING_PLAN, value); }
        }
		
		#endregion
	}
	
	
}	

